using System.Collections;
using System.Collections.Generic;

using UnityEngine;
using UnityEngine.EventSystems;
using UnityEngine.UI;

public class UIBagItem : MonoBehaviour,ISelectHandler
{
    public GameObject info;
    public int id;
    public void OnSelect(BaseEventData eventData)
    {
        info.SetActive(true);
        info.transform.GetComponentInChildren<Text>().text = DataManager.Instance.Items[id].Name+"\n" +DataManager.Instance.Items[id].Description;
    }
}
